﻿@model IEnumerable<Sis.Entities.Promotor>

@{
    ViewBag.Title = "Index";
}

<h1>Listado de Promotores</h1>
<hr>
    @using (Html.BeginForm())
    { 
        <table>
            <tr>
                <td><b>Criterio:</b></td>
                <td>@Html.TextBox("criterio",null, new { @class = "form-control input-sm" })</td>
                <td><button type="submit" name="btnBuscar" class="btn btn-success btn-sm" value="Buscar" >
                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> Buscar
                    </button></td>
            </tr>
        </table>        
    }

<br>



<p>
    @Html.ActionLink("Nuevo Promotor", "Create",null, new{ @class ="glyphicon glyphicon-plus btn btn-warning"} )
</p>
<table class="table table-hover">
    <tr>
        <th>
            @Html.DisplayName("Cod")
        </th>
        <th>
            @Html.DisplayName("N° Promotor")
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Ubigeo)
        </th>
        <th>
            @Html.DisplayName("Isla")
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CodigoEquifax)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Dni)
        </th>
        <th>
            @Html.DisplayName("Promotor")      
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Genero)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FechaNac)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Telefono)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Direccion)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CodigoPromotor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NumPromotor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ubigeo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdIslaVenta)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CodigoEquifax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Dni)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nombres)  
            @Html.DisplayFor(modelItem => item.ApPaterno)       
            @Html.DisplayFor(modelItem => item.ApMaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Genero)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FechaNac)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Telefono)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Direccion)
        </td>
        @*<td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>*@
    </tr>
}

</table>
